package com.huawei.appgallery.search.ui.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.search.ui.card.SearchSubstanceListCard;
import o.azb;
import o.cht;
import o.cih;
import o.cuv.e;

public class SearchSubstanceListNode extends cht {
    public SearchSubstanceListNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        View inflate = LayoutInflater.from(this.ॱ).inflate(e.ʾ, null);
        azb.ˏ(inflate);
        cih searchSubstanceListCard = new SearchSubstanceListCard(this.ॱ);
        searchSubstanceListCard.ˏ(inflate);
        ˊ(searchSubstanceListCard);
        viewGroup.addView(inflate, layoutParams);
        return true;
    }
}
